package com.cn.data.namespace;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: chenl
 * @Date: 2019/12/16 0:24
 */
public class MybeanNameSpaceTest {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext(new String[]{"applicationContext-mynamespace.xml"}, false);
        ac.setValidating(false);
        ac.refresh();

        People bean = ac.getBean("mybean123", People.class);

        System.out.println(bean.getName());
    }
}
